package com.mervin.patterns.factory.factorymethond;

import com.mervin.patterns.factory.Fruit;

/***************************************
 * @Auther: mervin
 * @Date: 2020-04-17 00:29
 * @Description:
 ***************************************/
public class Client {

    public static void main(String[] args) {
        IFruitCreateFactory appleFactory = new AppleCreateFactory();
        Fruit apple = appleFactory.createFruit();
        apple.grow();
        IFruitCreateFactory pearFactory = new PearCreateFactory();
        Fruit pear = pearFactory.createFruit();
        pear.grow();
    }
}
